package com.example.book_recommend.service.impl;

import com.example.book_recommend.dao.PrivilegeMapper;
import com.example.book_recommend.entity.Privilege;
import com.example.book_recommend.service.PrivilegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("PrivilegeService")
public class PrivilegeServiceImpl implements PrivilegeService {
    @Autowired
    private PrivilegeMapper privilegeMapper;

    @Override
    public Privilege[] getRights() {
        return privilegeMapper.selectAll();
    }
}
